Skip to content

Add support for using custom connections #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from Jul 14, 2018
Merged

Add support for using custom connections #143

merged 2 commits into from Jul 14, 2018

Conversation

wichert
Copy link
Contributor

@wichert wichert commented Jul 13, 2018

This builds on #36, and adds support for specifying a custom connection class to SQLAlchemyObjectType. The implementation is mostly a copy & paste from the identical feature in DjangoObjectType.

I am not sure why I needed to add a type property to UnsortedSQLAlchemyConnectionField; without that I consistently hit the "SQLALchemyConnectionField only accepts SQLAlchemyObjectType types" assertion.

This builds on #36, and adds support
for specifying a custom connection class to SQLAlchemyObjectType. The
implementation is mostly a copy & paste from [the identical feature in
DjangoObjectType](https://github.com/graphql-python/graphene-django/blob/master/graphene_django/types.py#L72).
@coveralls
Copy link

coveralls commented Jul 13, 2018

Coverage Status

Coverage decreased (-0.6%) to 91.854% when pulling 79eb7ce on curvetips:custom-connection into 70df6c7 on graphql-python:master.

@syrusakbary syrusakbary merged commit 4016b62 into graphql-python:master Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants